﻿<%@ Page Title="Change Password" Language="C#" MasterPageFile="~/UserView.master"
    AutoEventWireup="true" CodeBehind="PageChangePass.aspx.cs" Inherits="BestBuy.PageUser.PageChangePass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel5" runat="server" CssClass="left-side-bar bs-docs-sidebar">
        <ul class="nav nav-list bs-docs-sidenav">
            <li class="active" style="text-align: center;"><a href="#">Account Settings</a></li>
            <li><a id="A14" runat="server" href="#"><i class="icon-chevron-right"></i>Edit Profile</a></li>
            <li><a id="A15" runat="server" href="~/PageUser/PageChangePass.aspx"><i class="icon-chevron-right">
            </i>Change Password</a></li>
        </ul>
    </asp:Panel>
    <div class="main-content">
        <table width="100%" align="center">
            <tr>
                <td colspan="2" class="td_center">
                    <h1>
                        <asp:Label ID="lbInFo" runat="server" Text="Change Password"></asp:Label>
                    </h1>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td width="300px" class="td_left">
                    <asp:Panel ID="pnThongBao" runat="server">
                        <asp:Label ID="lbThongBao" runat="server"></asp:Label>
                    </asp:Panel>
                    <asp:ValidationSummary ID="ValidationSummaryPassword" runat="server" CssClass="InLeft error message" />
                </td>
            </tr>
            <tr>
                <td class="td_right">
                    <asp:Label ID="lbOldPass" runat="server" AssociatedControlID="txtOldPass" CssClass="control-label">Current password:</asp:Label>
                </td>
                <td class="td_left">
                    <asp:TextBox ID="txtOldPass" Width="250px" runat="server" CssClass="passwordEntry"
                        TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvOldPassword" runat="server" ControlToValidate="txtOldPass"
                        CssClass="failureNotification" ErrorMessage="Old password isn't null." ToolTip="Old password.">*</asp:RequiredFieldValidator>
                    <asp:CustomValidator ID="cvOldPass" CssClass="failureNotification" runat="server"
                        ControlToValidate="txtOldPass" ErrorMessage="Old password is incorrect." OnServerValidate="cvOldPass_ServerValidate">*</asp:CustomValidator>
                </td>
            </tr>
            <tr>
                <td class="td_right">
                    <asp:Label ID="lbNewPass" runat="server" AssociatedControlID="txtNewPass" CssClass="control-label">New password:</asp:Label>
                </td>
                <td class="td_left">
                    <asp:TextBox ID="txtNewPass" Width="250px" runat="server" CssClass="passwordEntry"
                        TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvNewPassword" runat="server" ControlToValidate="txtNewPass"
                        CssClass="failureNotification" ErrorMessage="New password isn't null." ToolTip="New password.">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="td_right">
                    <asp:Label ID="lbPrePass" runat="server" AssociatedControlID="txtPrePass" CssClass="control-label">Retype password:</asp:Label>
                </td>
                <td class="td_left">
                    <asp:TextBox ID="txtPrePass" Width="250px" runat="server" CssClass="passwordEntry"
                        TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPrePassword" runat="server" ControlToValidate="txtPrePass"
                        CssClass="failureNotification" ErrorMessage="Retype password isn't null." ToolTip="Again new password.">*</asp:RequiredFieldValidator>
                    <asp:CustomValidator ID="cvPrePassword" CssClass="failureNotification" runat="server"
                        ControlToValidate="txtPrePass" ErrorMessage="Retype password is incorrect." OnServerValidate="cvPrePassword_ServerValidate">*</asp:CustomValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td class="td_left">
                    <asp:Button ID="btnChange" runat="server" CssClass="style_button" Text="Change" CausesValidation="true"
                        OnClick="btnChange_Click" />
                    &nbsp;&nbsp;
                    <asp:Button ID="btnClear" runat="server" CausesValidation="false" CssClass="style_button"
                        Text="Clear" OnClick="btnClear_Click" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
